﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//领导
namespace Demo1
{
    enum NPCtype 
    {
        /// <summary>
        /// 任务NPC
        /// </summary>
        Task,
        /// <summary>
        /// 商贩NPC
        /// </summary>
        Pedlar,
        /// <summary>
        /// 铁匠NPC
        /// </summary>
        Blacksmith
    }
    abstract class NPC
    {
        protected string name;//NPC姓名
        protected NPCtype type;//NPC类型
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public NPCtype Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public NPC(string name,NPCtype type) 
        {
            this.name = name;
            this.type = type;
        }
        public NPC() { }
        public abstract void SpeakA();
        public abstract void SpeakB();
        public abstract void SpeakC();
    }
}
